SkyDemon Forums

Crash in Print Routine

http://23588_2017.hs2.instantasp.net/Topic1807.aspx

By rpc41 - 1/29/2011 1:14:37 PM

The following details are from a crash in the beta version when attempting to open the print system. It was trying to display the Pilot Log. The error appears to be caused by not handling ERR values in the MSA column. Why they should be suddenly set to ERR I do not know. I have been working on this flight plan for days with no problems. After a reload of SkyDemon the plan is OK again.



I'm not really trying to break it honest!



************** Exception Text **************

System.OverflowException: Value was either too large or too small for an Int32.

at System.Convert.ToInt32(Double value)

at Divelements.Aviation.Printing.xe5925ec7c6387d7a.x89277ccf1e3b6e5e(RhumbLineLeg xb04e2e8e28f7f89c, TimeSpan& x9a91410fb3d88434, Double& xf7b90603456caad3, Double& xc56a91d7e892bc44)

at Divelements.Aviation.Printing.xe5925ec7c6387d7a.xac394532b9695a71(Graphics x41347a961b838962, Rectangle& xa688a683bf2cfced, Int32 x278780fb19a87271)

at Divelements.Aviation.Printing.xe5925ec7c6387d7a.PrintPageCore(Graphics graphics, Rectangle marginBounds, Int32 extraSpace, Boolean& hasMorePages)

at Divelements.Aviation.Printing.xeed88c7e16cd03c8.x5c733725b33861d1(Graphics x41347a961b838962, Rectangle x15c6bd22a9fe622f, Int32 xcc69cbe17e053f66, Boolean& x150bab93255d8ac6)

at Divelements.Aviation.Printing.xeed88c7e16cd03c8.OnPrintPage(PrintPageEventArgs e)

at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)

at System.Drawing.Printing.PrintController.Print(PrintDocument document)

at System.Drawing.Printing.Printdocument.Print()

at System.Windows.Forms.PrintPreviewControl.ComputePreview()

at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()

at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

at System.Threading.ExecutionContext.runTryCode(Object userData)

at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


By Tim Dawson - 2/7/2011 11:37:21 AM

Thanks rpc.